
#include "stdafx.h"
#include "WicBitmapSourceTransform.h"

CWicBitmapSourceTransform::CWicBitmapSourceTransform()
{
    m_pIWICBitmapSourceTransform = NULL;
}

CWicBitmapSourceTransform::~CWicBitmapSourceTransform()
{
    if(m_pIWICBitmapSourceTransform)
    {
        m_pIWICBitmapSourceTransform->Release();
    }
    m_pIWICBitmapSourceTransform = NULL;
}

CWicBitmapSourceTransform::CWicBitmapSourceTransform(CWicBitmapSourceTransform const & objBitmapSourceTransform)
{
    m_pIWICBitmapSourceTransform = objBitmapSourceTransform.m_pIWICBitmapSourceTransform;
    m_pIWICBitmapSourceTransform->AddRef();
}

CWicBitmapSourceTransform& CWicBitmapSourceTransform::operator=(CWicBitmapSourceTransform const & objBitmapSourceTransform)
{
    if(m_pIWICBitmapSourceTransform)
    {
        m_pIWICBitmapSourceTransform->Release();
    }
    m_pIWICBitmapSourceTransform = objBitmapSourceTransform.m_pIWICBitmapSourceTransform;
    m_pIWICBitmapSourceTransform->AddRef();
    return *this;
}
